package com.example.exception;

/**
 * 资源未找到异常
 * 
 * @author Means
 * @since 2025-10-27
 */
public class ResourceNotFoundException extends BusinessException {
    
    public ResourceNotFoundException(String resourceName, String resourceId) {
        super(ErrorCode.RESOURCE_NOT_FOUND, 
              String.format("%s不存在: %s", resourceName, resourceId));
    }
    
    public ResourceNotFoundException(ErrorCode errorCode) {
        super(errorCode);
    }
    
    public ResourceNotFoundException(ErrorCode errorCode, String message) {
        super(errorCode, message);
    }
}

